package com.HomeWorkhsp.chapter11.TryCatch_;

/**
 * Enjoy programming!!!
 * Time: 2021/12/15 -  23:27
 */
public class TryCatch01 {
    public static void main(String[] args) {
        int num1 = 10;
        int num2 = 0;
        try{
            int res = num1 / num2;
        }
        catch(Exception e){
            System.out.println(e.getMessage());
        }
    }
}
